package com.ycz.pattern.behaviour.mediatorpattern;

import java.util.Date;

/**
 * @author yancz
 * @ClassName ChatRoom
 * @description: TODO
 * @date 2023-12-01 17:36:11
 * @version: 1.0
 */
public class ChatRoom {

    public static void showMessage(User user,String message) {
        System.out.println(new Date().toString() + "【" + user.getName() + "】：" + message);
    }

}
